import mysql from 'mysql2'
// 创建连接池，设置连接池的参数

// 数据库链接通用方法
export const sqlConnection = () => {
    return mysql.createPool({
        host: '124.221.139.170',
        port: 3310,
        user: 'root',
        database: 'hsxy',
        password: 'mysql123456',
        waitForConnections: true,
        connectionLimit: 10,
        queueLimit: 0
    }).promise()
}